Dynamic Obstacle Avoidance By Controlling Velocity